﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Server
{
    public enum ThingType
    {
        Group,
        VirtualItem,
        Item,
        Hero,
        Equip,
    }

    public class Thing
    {
        public ThingType Type;
        public int TemplateId;
        public int Count;
        public int Param1;

        public Thing()
        {
        }

        public Thing(ThingType type, int id, int count, int extraParam1 = 0)
        {
            Type = type;
            TemplateId = id;
            Count = count;
            Param1 = extraParam1;

            if (count < 0)
            {
                throw new ArgumentException($"count[{count}] is less 0 at [{type},{id}]");
            }
        }

        public Thing(int type, int id, int count, int extraParam1 = 0) : this((ThingType)type, id, count, extraParam1)
        {
        }
    }
}